<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
 <meta name="referrer" content="no-referrer">
    <title>Home</title>
    <meta content="" name="descriptison">
    <meta content="" name="keywords">

    <!-- Favicons -->
    <link href="static/assets/img/favicon.png" rel="icon">
    <link href="static/assets/img/apple-touch-icon.png" rel="apple-touch-icon">

    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,600,600i,700,700i,900"
          rel="stylesheet">

    <!-- Vendor CSS Files -->
    <link href="static/assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="static/assets/vendor/icofont/icofont.min.css" rel="stylesheet">
    <link href="static/assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
    <link href="static/assets/vendor/animate.css/animate.min.css" rel="stylesheet">
    <link href="static/assets/vendor/venobox/venobox.css" rel="stylesheet">
    <link href="static/assets/vendor/aos/aos.css" rel="stylesheet">

    <!-- Template Main CSS File -->
    <link href="static/assets/css/style.css" rel="stylesheet">

</head>

<body>


<!-- ======= Header ======= -->
<header id="header">
    <div class="container">

        <div class="logo float-left">
            <h1 class="text-light"><a href="index.html"><span>豆瓣电影TOP250</span></a></h1>
        </div>

        <nav class="nav-menu float-right d-none d-lg-block">
            <ul>
                <li class="active"><a href="/">首页 <i class="la la-angle-down"></i></a></li>
                <li><a href="/movie">电影列表</a></li>
                <li><a href="/score">评分</a></li>
                <li><a href="/word">词云</a></li>
                <li><a href="/team">团队</a></li>

            </ul>
        </nav><!-- .nav-menu -->

    </div>
</header><!-- End Header -->


<!-- ======= Our Team Section ======= -->
<section id="team" class="team">
    <div class="container">

        <div class="section-title">
            <h2>豆瓣电影TOP250</h2>
        </div>

        <!-- ======= Counts Section ======= -->
        <section class="counts section-bg">
            <div class="container">

                <div class="table-responsive-md">


                    <table class="table table-striped table-hover">
                        <tr>
                            <td>电影排名</td>
                            <td>电影中文名称</td>
                            <td>电影外外国名称</td>
                            <td style="width: 25%">电影简介</td>
                            <td style="width: 15%">评分</td>
                            <td style="width: 15%">评价人数</td>

                        </tr>
                        {% for item in data %}
                            <tr>
                                <td>{{ item[0] }}</td>
                                <td><a href="{{ item[1] }}" target="_blank">{{ item[3] }}</a></td>
                                <td>{{ item[4] }}</td>
                                <td class="overflow-hidden">{{ item[7] }}</td>
                                <td>{{ item[5] }}分</td>
                                <td>{{ item[6] }}人</td>


                            </tr>
                        {% endfor %}
                    </table>
                    <nav aria-label="Page navigation example">
                      <ul class="pagination">
{#                        <li class="page-item"><a class="page-link" href="{{ url_for(moviePagination( 1 , 25)) }}">上一页{{ start }}{{ pageSize }}</a></li>#}
{#                        <li class="page-item"><a class="page-link" href="{{ url_for(moviePagination( 1 , 255)) }}">下一页{{ total }}</a></li>#}
{#                          <li class="page-item"><a class="page-link" href="/movie/1/25">上一页{{ start }}{{ pageSize }}</a></li>#}
{#                        <li class="page-item"><a class="page-link" href="/movie/1/25">下一页{{ total }}</a></li>#}

                      </ul>
                    </nav>
                </div>
            </div>


        </section><!-- End Counts Section -->


    </div>
</section><!-- End Our Team Section -->

<main id="main">

    <!-- ======= Our Portfolio Section ======= -->
    <section id="portfolio" class="portfolio section-bg">
        <div class="container" data-aos="fade-up" data-aos-delay="100">

            <div class="section-title">
                <h2>影片推荐</h2>
                <p>豆瓣TOP250电影,每一部都是经典，我们可以从中学到不同的人生，感受到世间百态。</p>
            </div>

            <div class="row">
                <div class="col-lg-12">
                    <ul id="portfolio-flters">
                        <li data-filter="*" class="filter-active">热门</li>
                        <li data-filter=".filter-1">经典</li>
                        <li data-filter=".filter-2">价值</li>
                        <li data-filter=".filter-3">随机</li>
                    </ul>
                </div>
            </div>

            <div class="row portfolio-container">

               {% for item in randomList %}
                <div class="col-lg-4 col-md-6 portfolio-item filter-{{ item[0] % 4 }}">
                    <div class="portfolio-wrap">
                        <img src="{{ item[2] }}" class="img-fluid" alt="" style="width: 100%;height: 100%">
                        <div class="portfolio-info">
                            <h4>{{ item[3]}}</h4>
                            <p>{{ item[5] }}分</p>
                            <div class="portfolio-links">
                                <a href="{{ item[2] }}" data-gall="portfolioGallery"
                                   class="venobox" title="{{ item[3] }}"><i class="icofont-eye"></i></a>
                                <a href="{{ item[1] }}" target="_blank" title="More Details"><i class="icofont-movie"></i></a>
                            </div>
                        </div>
                    </div>
                </div>
                {%  endfor %}


            </div>

        </div>
    </section><!-- End Our Portfolio Section -->

</main><!-- End #main -->

  <!-- ======= Footer ======= -->
  <footer id="footer">

    <div class="container">
      <div class="copyright">Copyright &copy; 2021.豆瓣TOP250.<a target="_blank" href="http://llvyr.gitee.io">开发者博客</a></div>
      <div class="w"></div>
    </div>
  </footer><!-- End Footer -->

  <a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>
<!-- Vendor JS Files -->
<script src="static/assets/vendor/jquery/jquery.min.js"></script>
<script src="static/assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="static/assets/vendor/jquery.easing/jquery.easing.min.js"></script>

<script src="static/assets/vendor/jquery-sticky/jquery.sticky.js"></script>
<script src="static/assets/vendor/venobox/venobox.min.js"></script>
<script src="static/assets/vendor/waypoints/jquery.waypoints.min.js"></script>
<script src="static/assets/vendor/counterup/counterup.min.js"></script>
<script src="static/assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="static/assets/vendor/aos/aos.js"></script>

<!-- Template Main JS File -->
<script src="static/assets/js/main.js"></script>

</body>

</html>